import { Router } from '../router'
import { ok } from 'assert'

var router = new Router()

router.on('GET', '/foo/:bar', (result: string) => {
  ok(result === 'hello')
  console.log('Complete .')
})

router.exec('GET', '/foo/123', 'hello')